{eval
function tpl_hide_credits_hidden($creditsrequire) {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function tpl_hide_credits($creditsrequire, $message) {
}
<!--{block return}--><div class="locked">{lang post_hide_credits}</div>
$message<br /><br />
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function tpl_codedisp($discuzcodes, $code) {
}
<!--{block return}--><div class="blockcode"><div id="code$discuzcodes[codecount]"><ol><li>$code</ol></div><em onclick="copycode($('code$discuzcodes[codecount]'));">{lang discuzcode_copyclipboard}</em></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function tpl_quote() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function tpl_free() {
}
<!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function tpl_hide_reply() {
global $_G;
}
<!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function tpl_hide_reply_hidden() {
global $_G;
}
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function attachlist($attach) {
global $_G;
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$aidencode = aidencode($attach['aid']);
$GLOBALS['aimgs'][$attach['pid']][] = $attach['aid'];
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
}
<!--{block return}-->
	<!--{if $attach['attachimg'] && $_G['setting']['showimages']}-->
		<!--{if !IS_ROBOT}-->
			<dl class="tattl attm">
				<dt></dt>
				<dd>
					<p class="mbn">
						<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" id="aid$attach[aid]" class="bold" target="_blank">$attach[filename]</a>
						<em class="xg1">($attach[attachsize], {lang downloads}: $attach[downloads])</em>
					</p>
					<div class="attp" id="aid$attach[aid]_menu" style="display: none">
						<div class="crly">
							<p class="y">$attach[dateline] {lang upload}</p>
							<p>{lang downloads}: $attach[downloads]</p>
							<p>
								<a href="javascript:;" onclick="imageRotate('aimg_$attach[aid]', 1)"><img src="{STATICURL}image/common/rleft.gif" /></a>
								<a href="javascript:;" onclick="imageRotate('aimg_$attach[aid]', 2)"><img src="{STATICURL}image/common/rright.gif" /></a>
							</p>
						</div>
						<div class="mncr"></div>
					</div>
					<p class="mbn">
						<!--{if $attach['readperm']}-->{lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
						<!--{if $attach['price']}-->{lang price}: <strong>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</strong> &nbsp;[<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang pay_view}</a>]
							<!--{if !$attach['payed']}-->
								&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang attachment_buy}</a>]
							<!--{/if}-->
						<!--{/if}-->
					</p>
					<!--{if $attach['description']}--><p class="mbn xg2">{$attach[description]}</p><!--{/if}-->
					<!--{if !$attach['price'] || $attach['payed']}-->
						<p class="mbn">
						<!--{if $_G['setting']['thumbstatus'] && $attach['thumb']}-->
							<a href="javascript:;"><img id="aimg_$attach[aid]" onclick="zoom(this, '{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}')" src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attach[attachment].thumb.jpg{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" /></a>
						<!--{else}-->
							<img id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" alt="$attach[imgalt]" title="$attach[imgalt]" />
						<!--{/if}-->
						</p>
					<!--{/if}-->
				</dd>
		<!--{else}-->
			<dl class="tattl attm">
			<!--{if !$attach['price'] || $attach['payed']}-->
				<dd>
					<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
					<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
				</dd>
			<!--{/if}-->
		<!--{/if}-->
	<!--{else}-->
		<dl class="tattl">
			<dt>
				$attach[attachicon]
			</dt>
			<dd>
				<p class="attnm">
					<!--{if !$attach['price'] || $attach['payed']}-->
						<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" id="aid$attach[aid]" target="_blank"{if !$attach['attachimg'] && $_G[getattachcredits]} onclick="return creditconfirm('{$_G[getattachcredits]}');"{/if}>$attach[filename]</a>
					<!--{else}-->
						<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)">$attach[filename]</a>
					<!--{/if}-->
					<div class="attp" id="aid$attach[aid]_menu" style="display: none">
						<div class="crly">
							<p class="y">$attach[dateline] {lang upload}</p>
							<p>{lang downloads}: $attach[downloads]</p>
							<!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->{lang attachcredits} $_G[getattachcredits]<br /><!--{/if}-->
						</div>
						<div class="mncr"></div>
					</div>
				</p>
				<p>$attach[attachsize]<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->, {lang downloads}: $attach[downloads]</p>
				<p>
					<!--{if $attach['price']}-->
						{lang price}: <strong>{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</strong> &nbsp;[<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang pay_view}</a>]
						<!--{if !$attach['payed']}-->
							&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)">{lang attachment_buy}</a>]					
						<!--{/if}-->
					<!--{/if}-->
				</p>
				<!--{if $attach['description']}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
			</dd>
	<!--{/if}-->
	</dl>
<!--{/block}-->
<!--{eval return $return;}-->
{eval
}

function attachinpost($attach) {
global $_G;
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$aidencode = aidencode($attach['aid']);
$GLOBALS['aimgs'][$attach['pid']][] = $attach['aid'];
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G[forum_thread][archiveid] : '';
}
<!--{block return}-->
	<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed'])}-->
		<!--{if !IS_ROBOT}-->
			<!--{if $_G['setting']['thumbstatus'] && $attach['thumb']}-->
				<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" onclick="zoom(this, '{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}')" src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attach[attachment].thumb.jpg{/if}" border="0" id="aimg_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" alt="$attach[imgalt]" title="$attach[imgalt]" />
			<!--{else}-->
				<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} src="{STATICURL}image/common/none.gif" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" {if $_G['gp_action'] != 'printable'}$widthcode{/if} id="aimg_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" alt="$attach[imgalt]" title="$attach[imgalt]" />
			<!--{/if}-->
			<div class="tatt" id="aimg_$attach[aid]_menu" style="position: absolute; display: none">
				<div class="crly">
					<div class="y">$attach[dateline] {lang upload}</div>
					<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" title="$attach[filename] {lang downloads}:$attach[downloads]" target="_blank"><strong>{lang download}</strong> <span class="xs0">($attach[attachsize])</span></a>
					<!--{if $attach[description]}--><br />$attach[description]<!--{/if}-->
		<!--{else}-->
			<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
			<img src="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" alt="$attach[imgalt]" title="$attach[imgalt]" />
			<div style="display: none">
		<!--{/if}-->
	<!--{else}-->
		$attach[attachicon]
		<span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})">
			<!--{if !$attach['price'] || $attach['payed']}-->
				<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank"{if !$attach['attachimg'] && $_G[getattachcredits]} onclick="return creditconfirm('{$_G[getattachcredits]}');"{/if}>$attach[filename]</a>
			<!--{else}-->
				<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)">$attach[filename]</a>
			<!--{/if}-->
			<em class="xg1">($attach[attachsize], {lang downloads}: $attach[downloads]<!--{if $attach['price']}-->, {lang price}: {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}<!--{/if}-->)
			</em>
		</span>
		<div class="tatt" id="attach_$attach[aid]_menu" style="position: absolute; display: none">
			<div class="crly">
				<div class="y">$attach[dateline] {lang upload}</div>
				{lang downloads}: $attach[downloads]
				<!--{if $attach['description']}--><br />$attach[description]<!--{/if}-->
				<!--{if $attach['readperm']}--><br />{lang readperm}: $attach[readperm]<!--{/if}-->
	<!--{/if}-->
	<!--{if $attach['price']}-->
		<br />{lang price}: {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}	&nbsp;<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)" target="_blank">[{lang pay_view}]</a>
		<!--{if !$attach['payed']}-->
			&nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href)" target="_blank">{lang attachment_buy}</a>]
		<!--{/if}-->
	<!--{/if}-->
	<!--{if !$attach['attachimg'] && $_G['getattachcredits']}--><br />{lang attachcredits}: $_G[getattachcredits]<!--{/if}-->
			</div>
			<div class="mncr"></div>
		</div>
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}

}-->